home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.mactech.com 2010
/
ftp.mactech.com.tar
/
ftp.mactech.com
/
machack
/
Hacks97
/
WarriorsProgress.sit
/
Warrior’s Progress
/
source code
/
Source
/
Libraries
/
Miscellany
/
A5.h
< prev
next >
Wrap
Text File
|
1997-06-28
|
392b
|
38 lines
// A5.h
#ifndef A5_h
#define A5_h
#ifndef Registers_h
#include "Registers.h"
#endif
#if GENERATINGCFM
class A5
{
public:
void Restore() const {}
};
#else
class A5
{
private:
void *const a5;
public:
A5()
: a5( RegisterA5() )
{}
void Restore() const { SetRegisterA5( a5 ); }
void *Address() const { return a5; }
};
#endif
#endif